﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace NCEdu.Web.fileInfo
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int fielId=(Convert.ToInt32(strid));
					ShowInfo(fielId);
				}
			}
		}
		
	private void ShowInfo(int fielId)
	{
		NCEdu.BLL.fileInfo bll=new NCEdu.BLL.fileInfo();
		NCEdu.Model.fileInfo model=bll.GetModel(fielId);
		this.lblfielId.Text=model.fielId.ToString();
		this.lblfileName.Text=model.fileName.ToString();
		this.lblfileUpdateTime.Text=model.fileUpdateTime.ToString();
		this.lblfileSize.Text=model.fileSize;
		this.lblfileAuthor.Text=model.fileAuthor;

	}


    }
}
